<?php
require_once 'model/Address.php';

class AddressService
{
	private $address;
	
	function __construct()
	{
		$this->address = Address::getInstance();
	}
	
	public function saveAddress(AddressVO $address)
	{
		return $this->address->saveAddress($address);
	}
	
	public function updateAddress(AddressVO $address)
	{
		return $this->address->updateAddress($address);
	}
	
	public function listAddress(CustomerVO $customer)
	{
		return $this->address->listAddressByCustomer($customer->idCustomer);
	}
	
	public function deleteAddress(AddressVO $address)
	{
		return $this->address->deleteAddress($address->idAddress);
	}
}